package com.prs.crm.domain.online;

import java.util.List;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * 
 * @author Yanghao
 *	2012-7-16 16:29:39 论坛管理
 */
@Entity
@Table(name="on_forummanager")
public class ForumManager extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	/**名称*/
	private String name;
	/**版主*/
	private String forumManagerPerson;
	/**可看见人员*/
	private String seePerson;
	/**可发帖人员*/
	private String postedPerson;
	/**排序*/
	private Integer sort;
	/**说明*/
	private String remark;
	/**主题数*/
	private Integer themeNum;
	/**文章数*/
	private Integer articleNum;
	/**最后发表文章*/
	private String lastaArticle;
	/**最后发表时间*/
	private String lastDate;
	/**最后发表名字*/
	private String lastName;
	private String showState;
	private String tiezi;
	private String seeState;
	private String isDel;
	private String state;
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getIsDel() {
		return isDel;
	}
	public void setIsDel(String isDel) {
		this.isDel = isDel;
	}
	public String getSeeState() {
		return seeState;
	}
	public void setSeeState(String seeState) {
		this.seeState = seeState;
	}
	public String getTiezi() {
		return tiezi;
	}
	public void setTiezi(String tiezi) {
		this.tiezi = tiezi;
	}
	public String getShowState() {
		return showState;
	}
	public void setShowState(String showState) {
		this.showState = showState;
	}
	@OneToMany(fetch=FetchType.LAZY,mappedBy="forumManager")
	private List<ForumContent> forumContent;
	
	public String getLastaArticle() {
		return lastaArticle;
	}
	public void setLastaArticle(String lastaArticle) {
		this.lastaArticle = lastaArticle;
	}
	public String getLastDate() {
		return lastDate;
	}
	public void setLastDate(String lastDate) {
		this.lastDate = lastDate;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public Integer getArticleNum() {
		return articleNum;
	}
	public void setArticleNum(Integer articleNum) {
		this.articleNum = articleNum;
	}
	public Integer getThemeNum() {
		return themeNum;
	}
	public void setThemeNum(Integer themeNum) {
		this.themeNum = themeNum;
	}

	public List<ForumContent> getForumContent() {
		return forumContent;
	}
	public void setForumContent(List<ForumContent> forumContent) {
		this.forumContent = forumContent;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getForumManagerPerson() {
		return forumManagerPerson;
	}
	public void setForumManagerPerson(String forumManagerPerson) {
		this.forumManagerPerson = forumManagerPerson;
	}
	public String getSeePerson() {
		return seePerson;
	}
	public void setSeePerson(String seePerson) {
		this.seePerson = seePerson;
	}
	public String getPostedPerson() {
		return postedPerson;
	}
	public void setPostedPerson(String postedPerson) {
		this.postedPerson = postedPerson;
	}
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
